package com.yunhe.option.repository.base;

import com.yunhe.option.domain.base.PriceRate;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface PriceRateRepository extends Neo4jRepository<PriceRate, Long> {
    @Query("start s=Node({id}) match (s)-[]-(pr:PriceRate) return pr")
    Iterable<PriceRate> findBySeasonPriceId(@Param("id") Long seasonPriceId);
}
